package com.warrior.respository;

import com.warrior.entity.TeamEntity;
import com.warrior.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Shawn on 2017/3/13.
 */
@Repository
public interface IUserRepository extends JpaRepository<UserEntity,String>,PagingAndSortingRepository<UserEntity,String> {

    UserEntity findUserEntityById(String id);

    List<UserEntity> findUserByTeamEntity(TeamEntity teamEntity);

    UserEntity findUserEntityByWxChatToken(String token);

}
